import NaiveBayes

def wordOccurenceThresholdExperiment():
	threshold = 0
	while(threshold <= 50):
		print "Threshold " + str(threshold)
		NaiveBayes.runCustomWordOccurenceThreshold(threshold)
		threshold = threshold + 1
		
def topBottomWordsExperiment():
	topWords = 1
	while(topWords <= 10):
		bottomWords = 0
		while(bottomWords <= 10):
			print "Top " + str(topWords) +"   "+"Bottom " + str(bottomWords)
			if(topWords != 0 or bottomWords != 0):
				NaiveBayes.runCustomTopBottomWords(topWords,bottomWords)
			bottomWords = bottomWords + 1
		topWords = topWords + 1
		
def reverseTopBottomWordsExperiment():
	topWords = 10
	while(topWords >= 0):
		bottomWords = 10
		while(bottomWords >= 0):
			print "Top " + str(topWords) +"   "+"Bottom " + str(bottomWords)
			if(topWords != 0 or bottomWords != 0):
				NaiveBayes.runCustomTopBottomWords(topWords,bottomWords)
			bottomWords = bottomWords - 1
		topWords = topWords - 1

def test():
	wordOccurenceThresholdExperiment()
	
def main():
	test()
	
if __name__=="__main__":
    main()